import request from '@/utils/request'

// 查询矿山发货记录列表
export function listMiningshipment(query) {
  return request({
    url: '/app/miningshipment/list',
    method: 'get',
    params: query
  })
}

// 查询矿山发货记录详细
export function getMiningshipment(id) {
  return request({
    url: '/app/miningshipment/' + id,
    method: 'get'
  })
}

// 新增矿山发货记录
export function addMiningshipment(data) {
  return request({
    url: '/app/miningshipment',
    method: 'post',
    data: data
  })
}

// 修改矿山发货记录
export function updateMiningshipment(data) {
  return request({
    url: '/app/miningshipment',
    method: 'put',
    data: data
  })
}

// 删除矿山发货记录
export function delMiningshipment(id) {
  return request({
    url: '/app/miningshipment/' + id,
    method: 'delete'
  })
}
// a产量数据字典
export function dictionlist(params) {
    return request({
      url: '/app/diction/list',
      method: 'get',
      params
    })
  }
// a产量数据字典新增
export function dictionAdd(data) {
  return request({
    url: '/app/diction',
    method: 'post',
    data
  })
}
// a产量数据字典删除
export function dictionDel(data) {
  return request({
    url: `/app/diction/${data.id}`,
    method: 'delete',
  })
}